﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotelManager
{
    public class ReservationInfo
    {
        public Person Guest { get; set; }
        public Room ReservedItem { get; set; }
        public DateTime TimeForCheckIn { get; set; }
        public DateTime TimeOfReservation { get; set; }
        public int DurationOfStay { get; set; }
        public bool IsCanceled { get; set; }
    
        public ReservationInfo(Person guest, Room item, DateTime timeForCheckIn, int duration) : this()
        {
            this.Guest = guest;
            this.ReservedItem = item;
            this.TimeForCheckIn = timeForCheckIn;
            this.DurationOfStay = duration;
            this.TimeOfReservation = DateTime.Now;
        }

        public ReservationInfo()
        {

        }
    }
}
